package cn.falconnect.adserver.adapter.persistence.dao;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import cn.falconnect.adserver.domain.ad.StrategyUserDmpMap;

@Component
public interface StrategyUserDmpMapDao {

	@Results(value = { @Result(column = "id", property = "id", id = true),
			@Result(column = "strategy_id", property = "strategyId"),
			@Result(column = "user_dmp_id", property = "userDmpId"),
			@Result(column = "channel_id", property = "channelId"),
			@Result(column = "create_time", property = "createTime"),
			@Result(column = "update_time", property = "updateTime") })
	@Select("select * from strategy_user_dmp_map ")
	List<StrategyUserDmpMap> findAll();

//	@Results(value = { @Result(column = "id", property = "id", id = true),
//			@Result(column = "strategy_id", property = "strategyId"),
//			@Result(column = "platform_id", property = "platformId"),
//			@Result(column = "create_time", property = "createTime"),
//			@Result(column = "update_time", property = "updateTime") })
//	@Select("select * from strategy_user_dmp_map where update_time >= #{value} ")
//	List<StrategyUserDmpMap> findAfterTime(String warmUpTime);
		
	
}
